package com.qijian.maindata.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;
import com.qijian.tool.domain.Storage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

/**
 * 检验方案对象 main_examine_scheme
 *
 * @author qijian
 * @date 2021-11-24
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_examine_scheme")
public class ExamineScheme extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "ID")
    private Long schemeId;

    /**
     * 编号
     */
    @ApiModelProperty(value = "编号")
    @Excel(name = "编号", type = Excel.Type.EXPORT)
    private String schemeCode;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    @Excel(name = "名称", type = Excel.Type.EXPORT)
    private String schemeName;

    /**
     * 适用工序
     */
    @ApiModelProperty(value = "适用工序")
    private String useProcess;

    @ApiModelProperty(value = "参数列")
    private Integer paramQty;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    @Excel(name = "描述", type = Excel.Type.EXPORT)
    private String remark;

    @TableField(exist = false)
    private List<Storage> files;
}
